package cn.hp.mapper;
import cn.hp.entity.Announcement;
import java.util.List;
public interface AnnouncementMapper {
    /**
     * 查询所有公告
     * @return
     */
    List<Announcement> selectAnnouncement();
    /**
     * 新增公告信息
     * @param announcement
     * @return
     */
    int insertAnnouncement(Announcement announcement);
    /**
     * 删除公告信息
     * @param id 公告id
     * @return
     */
    int deleteAnnouncementById(Integer id);
    /**
     * 修改公告信息
     * @param announcement
     * @return
     */
    int updateAnnouncement(Announcement announcement);
    /**
     * 查询所有公告
     * @param announcement
     * @return
     */
    List<Announcement> selectAnnouncement(Announcement announcement);

}